package com.dr.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dr.entity.Orderdetail;
import com.dr.entity.Orderinfo;
import com.dr.entity.Shopcart;
import com.dr.mapper.OrderinfoMapper;
import com.dr.service.OrderinfoService;
@Service
@Transactional
public class OrderinfoServiceImpl implements OrderinfoService {
	@Autowired
	private OrderinfoMapper orderinfoService;
	@Override
	public List<Orderinfo> AllOrderinfo(Orderinfo o) {
		// TODO Auto-generated method stub
		return orderinfoService.AllOrderinfo(o);
	}
	@Override
	public Integer getCount(Orderinfo o) {
		// TODO Auto-generated method stub
		return orderinfoService.getCount(o);
	}
	@Override
	public Integer updateOrderinfo(Orderinfo o) {
		// TODO Auto-generated method stub
		return orderinfoService.updateOrderinfo(o);
	}
	@Override
	public List<Orderdetail> findOrder(String orderId) {
		// TODO Auto-generated method stub
		return orderinfoService.findOrder(orderId);
	}
	@Override
	public List<Shopcart> findShopByIds(String idStr, Integer id) {
		// TODO Auto-generated method stub
		return orderinfoService.findShopByIds(idStr, id);
	}
	@Override
	public int insertOrderinfo(Orderinfo o) {
		// TODO Auto-generated method stub
		return orderinfoService.insertOrderinfo(o);
	}
	@Override
	public int insertOrderdetail(Orderdetail o) {
		// TODO Auto-generated method stub
		return orderinfoService.insertOrderdetail(o);
	}
	@Override
	public int editOrderInfoByOrderId(String id) {
		// TODO Auto-generated method stub
		return orderinfoService.editOrderInfoByOrderId(id);
	}
	@Override
	public List<Orderinfo> findOrderinfo(Integer userId, Integer status, String orderId) {
		// TODO Auto-generated method stub
		return orderinfoService.findOrderinfo(userId, status, orderId);
	}
	@Override
	public List<Orderdetail> findNoCommentByOrderId(String orderId) {
		// TODO Auto-generated method stub
		return orderinfoService.findNoCommentByOrderId(orderId);
	}
	@Override
	public List<Orderdetail> findOrderDetailByOrderId(String orderId) {
		// TODO Auto-generated method stub
		return orderinfoService.findOrderDetailByOrderId(orderId);
	}
	@Override
	public Orderinfo findOrderinfoByOrderId(String orderId) {
		// TODO Auto-generated method stub
		return orderinfoService.findOrderinfoByOrderId(orderId);
	}
	@Override
	public int updateIscommentById(Integer id) {
		// TODO Auto-generated method stub
		return orderinfoService.updateIscommentById(id);
	}
	@Override
	public int editOrderInfoSh(String orderId) {
		// TODO Auto-generated method stub
		return orderinfoService.editOrderInfoSh(orderId);
	}
	@Override
	public int editOrderInfoWc(String orderId) {
		// TODO Auto-generated method stub
		return orderinfoService.editOrderInfoWc(orderId);
	}
	@Override
	public int CountSta(Integer status) {
		// TODO Auto-generated method stub
		return orderinfoService.CountSta(status);
	}
	

}
